﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace June_6_2021
{
    class Solo
    {
        public string PInput { get; set; }
        public string RInput { get; set; }

        public Solo() { }
        public Solo(string pinput, string rinput)
        {
            this.PInput = pinput;
            this.RInput = rinput;
        }

        public void PIn()
        {
            int key = int.Parse(Console.ReadLine());
            switch (key)
            {
                case 1:
                    PInput = "剪刀";
                    break;
                case 2:
                    PInput = "石头";
                    break;
                case 3:
                    PInput = "布";
                    break;
                default:
                    Console.WriteLine("输入有误，请输入【1，2，3】");
                    PIn();
                    break;
            }
        }

        public void RIn()
        {
            int key = int.Parse(Console.ReadLine());
            switch (key)
            {
                case 1:
                    RInput = "剪刀";
                    break;
                case 2:
                    RInput = "石头";
                    break;
                case 3:
                    RInput = "布";
                    break;
                default:
                    Console.WriteLine("输入有误，请输入【1，2，3】");
                    RIn();
                    break;
            }
        }
    }
}
